home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / alib / commodities.a < prev    next >
Text File  |  1994-02-01  |  638b  |  42 lines

  1.  
  2.             ;   autoinit if you ever reference COMMODITIES
  3.             ;
  4.             ;   (c)Copyright 1994, OIC, All Rights Reserved
  5.             ;
  6.             ;   Note:   das automatically pads code sections with
  7.             ;        NOPs.
  8.  
  9.             xdef    _CxBase
  10.             xref    __AutoFail0
  11.  
  12. _LVOOpenLibrary     equ    -552
  13. _LVOCloseLibrary    equ    -414
  14.  
  15.             section autoinit0,code
  16.  
  17.             moveq.l #0,D0
  18.             lea    comname(pc),A1
  19.             jsr    _LVOOpenLibrary(A6)
  20.             move.l    D0,_CxBase(A4)
  21.             beq    __AutoFail0
  22.             bra    i10
  23. comname         dc.b    'commodities.library',0
  24.             ds.w    0
  25. i10
  26.  
  27.             section autoexit0,code
  28.  
  29.             move.l    _CxBase(A4),D0
  30.             beq    l10
  31.             move.l    D0,A1
  32.             jsr    _LVOCloseLibrary(A6)
  33. l10
  34.  
  35.  
  36.             section libbss,bss
  37.  
  38. _CxBase        ds.l    1
  39.  
  40.             END
  41.  
  42.